import characters from "../model/characters.js"
import plugin from "../../../lib/plugins/plugin.js"
export class Characters extends plugin {
  constructor() {
    super({
      name: "崩坏3角色",
      dsc: "崩坏3角色",
      event: "message",
      priority: 100,
      rule: [{ reg: "^#*崩三?(角色|我的角色)$", fnc: "characters" }],
    })
  }

  async characters() {
    let data = await new characters().getData(this.e)
    this.renderImg("BH3-Plugin", `html/characters/characters`, data)
  }
}
